<div class="forum">
<h2><?php echo __('Forum topics List') ?></h2>
<table>
  <thead>
    <tr>
      <th>Categorie</th>
      <th>Sujet</th>
      <th>Auteur</th>
      <th>Déscription</th>
      <th>Date création</th>

    </tr>
  </thead>
  <tfoot><tr><td colspan="9"></td></tr></tfoot>
  <tbody>
    <?php foreach ($forum_topics as $forum_topic): ?>
    <tr>      
      <td><?php echo $forum_topic->forumCategory->getName() ?></td>
      <td><a href="<?php echo url_for('forumTopic/show?id='.$forum_topic->getId()) ?>"> <?php echo $forum_topic->getSubject() ?></a></td>
      <td><?php echo $forum_topic->forumMembers->sfGuardUser->getUsername() ?></td>
      <td><?php echo $forum_topic->getDescr() ?></td>
      <td><?php echo $forum_topic->getDateTimeObject('created_at')->format('d/m/Y') ?> </td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

<?php if(!empty($is_forum_member) && $is_forum_member == 1 ) : ?>
  <a class="link-new" href="<?php echo url_for('forumTopic/new') ?>">New</a>
  <?php endif; ?>
</div>
